package com.senyint.sys.utils.uuid;

import java.text.SimpleDateFormat;
import java.util.Date;

public class UUID {

	public static String getUUid() {
		return java.util.UUID.randomUUID().toString().replace("-", "").toUpperCase();
	}

	public static String createNewXeGuidWithDate(Date date) {
		return String.format("%s_%s", new SimpleDateFormat("yyyyMMdd").format(date), getUUid());
	}
}
